package com.woniu.woniu_bx.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * @ClassName Discuss
 * @Description TODO
 * @Author 于文龙
 * @Date 2022/8/27 15:36
 * @Version 1.0
 **/
@Data
@TableName("bx_discuss")
public class Discuss {
    //id
    private Integer id;
    //pid
    private Integer pid;
    //内容
    private String content;
    //发送者id
    private Integer senderId;
    //动态id
    private Integer momentId;
    //子评论
    @TableField(exist = false)
    private List<Discuss> subDiscuss;
    //时间
    private String time;
    //楼层
    private Integer floor;
    //发送者信息
    @TableField(exist = false)
    private User user;
    //父评论
    @TableField(exist = false)
    private Discuss pdiscuss;
}